<template>
  <div>
    <h1>这是一个app页面</h1>
    <h2>{{ msg }}</h2>
    <button @click="change">改变msg</button>
    <ul>
      <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "hello world",
      arr: ["a", "b", "c"],
    };
  },
  methods: {
    change() {
      this.msg = "vuevuevue";
    },
  },
};
</script>

<style lang="scss">
h1 {
  background: #ccc;
  &:hover {
    background: red;
  }
}
</style>
